/**
 * 
 */
package moreHealthModel.Campus.Transit;


/**
 * @author aloke
 *
 */

//Represent Information Regarding the Hall location
public class Halls extends Transit
	{
	//ATTRIBUTES ======================================
		
	//The address information of where the Hall is present.
	private String hallAddressx_="";
	
	//Time when the Student was present at the Hall.
	private int timeInstancex_=0;
	
	//TODO: Add mechanism to check the time at Location 1<time Location 2
	//CONSTRUCTORS ======================================
	//PRE-CONDITION:
		//1. Latitude, longitude should not be negative
		//2. Time cannot be negative and decimal
	public Halls(int latitude, int longitude, String hallAddress, int time)
		{

			setLocationLatitude(latitude);
			setLocationLongitude(longitude);
			this.hallAddressx_= hallAddress;
			this.timeInstancex_= time;
		
			if (latitude<=-1)
				{System.out.println("Latitude cannot be less than 0.");}
			else if (longitude<=-1)
				{System.out.println("Longitude cannot be less than 0.");}
			else if (time<=-1)
				{System.out.println("Time cannot be less than 0");}
			
		}
	
	//INTENT: gets the Hall Address at which the Student was present.
	//POST-CONDITION: 
		//1. Send the Address of the Hall at which the Student was present at that time.
	public String getHallAddress()
		{return hallAddressx_;}

	
	//INTENT: gets the time when the Student was present at the Hall.
	//POST-CONDITION: 
		//1. Send the time when the Student was present in the Hall grid.
	public int getTimeInstance ()
		{return timeInstancex_;}
	
	}
